package com.kaifamiao.www.ioDemo.do0923;

import java.io.Serializable;

public class Student implements Serializable {

    private String name;

    private double score;

    //transient瞬态，修饰的成员不会被序列化
    public  transient String gender;

    private class men{}

    public class man{}
    public Student(){}

    public Student(String name){}

    public Student(String name,double score){}

    public Student(String name,double score,String gender){
        this.name = name;
        this.score = score;
        this.gender = gender;
    }

    private String getName() {
        return name;
    }
    private String getName(String name){
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", score=" + score +
                ", gender='" + gender + '\'' +
                '}';
    }
}
